
from rest_framework.pagination import PageNumberPagination


# 全局分类设置
class StandardResultsSetPagination(PageNumberPagination):
    """继承StandardResultsSetPagination类,设置全局配置"""
    page_size = 2  # 默认分成2页
    page_size_query_param = 'page_size'
    max_page_size = 20  # 最大分页数
